<%-- ExMobi JSP文件，注释和取消快捷键统一为Ctrl+/ 多行注释为Ctrl+Shift+/ --%>
<%@ page language="java" import="java.util.*"
 contentType="application/text; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/client/adapt.jsp"%>
<%@ include file="/client/adapt_extend.jsp"%>
<%
// 直推方式。模拟器测试有效
//获取请求表单参数，更多获取请求参数方式请参照【 8.2.2 API处理页面获取请求信息】
    String clientid = aa.req.getParameter("clientid");
    String esn = aa.req.getParameter("esn");
    String msg1 = aa.req.getParameter("msg1");
    String msg2 = aa.req.getParameter("msg2");
%>
<aa:direct-push  directPushType="app"
    titleHead="测试" title="推送通知测试" page="page/pushMsg.uixml">
    <aa:push-receiver clientid='<%=clientid%>' esn='<%=esn%>'>
    </aa:push-receiver>
    <aa:push-params>
        <aa:push-param name="msg1" value="<%=msg1 %>" />
        <aa:push-param name="msg2" value="<%=msg2 %>" />
    </aa:push-params>
</aa:direct-push>
<%

    //进行响应（响应类容为自定义， 根据实际api场景进行响应，可以是json，xml，文本，附件等

    //例如将推送结果以xml数据格式进行返回

    response.setContentType("text/xml;charset=UTF-8");

%>

<aa:copy-of xpath="//rsp"/>

